import { axios } from '@/utils/request';
// 任务管理-待办列表
export function todo(data) {
    return axios({
        url: 'dev/workflow/model/create',
        method: 'post',
        data
    });
}
// 任务管理-办理
export function handle(id, data) {
    return axios({
        url: 'dev/workflow/model/save/' + id,
        method: 'post',
        data
    });
}
// 模型管理-新增
export function create(data) {
    return axios({
        url: 'dev/workflow/model/create',
        method: 'post',
        data
    });
}
// 模型管理-更新
export function save(id, data) {
    return axios({
        url: 'dev/workflow/model/save/' + id,
        method: 'put',
        data
    });
}
// 模型管理-分页
export function pageModel(params) {
    return axios({
        url: 'dev/workflow/model/all',
        method: 'get',
        params
    });
}
// 模型管理-删除
export function deleteModel(id) {
    return axios({
        url: 'dev/workflow/model/del/' + id,
        method: 'delete'
    });
}
// 模型管理-XML
export function getModelXML(id) {
    return axios({
        url: 'dev/workflow/model/getModelXml/' + id,
        method: 'get'
    });
}
// 模型管理-PNG
export function getModelPNG(id) {
    return axios({
        url: 'dev/workflow/model/getModelPng/' + id,
        method: 'get'
    });
}
